package org.zjsru.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * 订单服务Feign客户端
 */
@FeignClient(name = "order-service", fallback = OrderFeignClientFallback.class)
public interface OrderFeignClient {

    @PostMapping("/orders/{orderId}/pay")
    boolean updateOrderStatus(@PathVariable("orderId") Long orderId);
} 